package com.edushare.common.vo;

import java.util.Date;

import com.edushare.common.vo.auto._ScheduleNotifications;

public class ScheduleNotifications extends _ScheduleNotifications
	implements DateComparision {

	private static final long serialVersionUID = 6096583308417130990L;
	public static final int OPEN = 1;
	public static final int INVITED = 2;
	public static final int HIDDEN = 3;
	public static final int RESPONSE_REQUIRED = 4;
	public static final int CANCELLED = 5;
	
	
	
	
	public int compareTo(IDateComparable arg0) {
		if(getDate().getTime() < arg0.getDate().getTime())
			return -1;
		else if(arg0.getDate().getTime() == getDate().getTime())
			return 0;
		else
			return 1;
	}
	public Date getDate() {
		return getSchedule().getSchStart();
	}
}
